import { createStore, applyMiddleware } from 'redux'
import createSagaMiddleware from 'redux-saga'
import reducer from './reducers'
import saga from './sagas'
const sagaMiddle = createSagaMiddleware()

export const store = createStore(reducer, applyMiddleware(sagaMiddle))

sagaMiddle.run(saga)